#include "xlog_format.h"

#include <sstream>
#include <iomanip>

#include <log_utils.h>

using namespace std;

std::string XLogFormat::Format(const std::string &level, const std::string &log, const std::string &file, int line)
{
    stringstream ss;

    ss << GetNow()
       << " " << level
       << " " << log
       << " " << file
       << ":" << line;

    return ss.str();
}
